package org.idea.eaglemq.broker.core;

import java.util.HashMap;
import java.util.Map;

/**
 * @author: LunBoWang
 * @description:
 * @date: 2025/5/8 下午7:35
 * @version: 1.0
 */
public class CommitLogMMapFileModelManager {

    /**
     * key:主题名称，value:文件的mMap对象
     */
    private Map<String, CommitLogMMapFileModel> mMapFileModelMap = new HashMap<>();

    public void put(String topic, CommitLogMMapFileModel mapFileModel) {
        mMapFileModelMap.put(topic,mapFileModel);
    }

    public CommitLogMMapFileModel get(String topic) {
        return mMapFileModelMap.get(topic);
    }

}
